package nc.ui.cmp.cm;

import nc.impl.arap.proxy.IProxyCommon;
import nc.impl.cmp.proxy.CMPProxy;
import nc.ui.cmp.IBusiInfoPanel;
import nc.ui.ep.dj.CMPFiFlowPanel;
import nc.ui.glpub.IParent;
import nc.vo.cmp.BusiInfo;
import nc.vo.pub.AggregatedValueObject;
import nc.vo.pub.BusinessException;

/**
 * @author maji
 *
 */
public class BusiBillPanel extends CMPFiFlowPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public BusiBillPanel(){
		super();
	}
	public BusiBillPanel(int syscode){
		super(syscode);
	}
	@Override
	public IProxyCommon getProxy() {
		return (IProxyCommon)CMPProxy.getInstance();
	}

	@Override
	public String getTitle() {
		return "";
	}

	public AggregatedValueObject getBillVO(BusiInfo info) throws BusinessException {
		return getProxy().getIArapBillPublic().findArapBillByPK(info.getBillid());
	}

	public IParent getBusiPanelParent(IBusiInfoPanel panel) throws BusinessException {
		return this.m_parent;
	}
	public String getNodeCode() {
		return this.getDjSettingParam().getNodeID();
	}
	
}
